package org.dromara.customer.service;

import org.dromara.customer.domain.TaOrderDetail;
import org.dromara.customer.domain.vo.TaOrderDetailVo;
import org.dromara.customer.domain.bo.TaOrderDetailBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 订单明细Service接口
 *
 * @author xiyin321
 * @date 2024-07-09
 */
public interface ITaOrderDetailService {

    /**
     * 查询订单明细
     */
    TaOrderDetailVo queryById(Long orderDetailId);

    /**
     * 查询订单明细列表
     */
    TableDataInfo<TaOrderDetailVo> queryPageList(TaOrderDetailBo bo, PageQuery pageQuery);

    /**
     * 查询订单明细列表
     */
    List<TaOrderDetailVo> queryList(TaOrderDetailBo bo);

    /**
     * 新增订单明细
     */
    Boolean insertByBo(TaOrderDetailBo bo);

    /**
     * 修改订单明细
     */
    Boolean updateByBo(TaOrderDetailBo bo);

    /**
     * 校验并批量删除订单明细信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
